﻿<Controls:MetroWindow x:Class="RazorSourceGenerator.SQLEidtor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        Title="SQLEidtor" Height="330" Width="450" WindowStyle="ToolWindow" 
        WindowStartupLocation="CenterOwner" Loaded="Window_Loaded">
  <Window.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="CommonStyle.xaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Window.Resources>
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="330"></ColumnDefinition>
      <ColumnDefinition Width="*"></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="200"></RowDefinition>
      <RowDefinition Height="40"></RowDefinition>
      <RowDefinition Height="*"></RowDefinition>
    </Grid.RowDefinitions>
    <TextBox x:Name="txtSQL" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Margin="10" 
             VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" 
             TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" FontFamily="Consolas" />
    <CheckBox Margin="10" x:Name="chkLoopInSQLResult" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" 
                  Content="Loop In Result" ToolTip="If LoopInResult that should be 'Model.xxx' not 'Model.Result.xxx' in template"  />
    <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="0">
      <Button Content="OK" Height="23" Width="75" Margin="10 0 0 0" Name="btnOK" Click="btnOK_Click" />
      <Button Content="Clear" Height="23" Width="75" Margin="10 0 0 0" Name="btnClear" Click="btnClear_Click" />
    </StackPanel>
    <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right">
      <Button Content="Cancel" Height="23" Width="75" Margin="0 0 10 0" Name="btnCancel" Click="btnCancel_Click" />
    </StackPanel>
  </Grid>
</Controls:MetroWindow>
